import torch
import torch.nn as nn
import torch.nn.functional as F 

class Hole(nn.Module):
    def __init__(self):
        super(Hole, self).__init__()
        
    def forward(self, outs, gts, weight):
        loss = F.l1_loss(weight * outs, weight * gts)
        return loss

class Valid(nn.Module):
    def __init__(self):
        super(Valid, self).__init__()
        
    def forward(self, outs, gts, weight):
        loss = F.l1_loss(weight * outs, weight * gts)
        return loss